#!/usr/bin/env python3.10
# -*- encoding: utf-8 -*-
'''
@File    :   api.py
@Time    :   2024/02/06 11:22:13
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
from ninja_extra import NinjaExtraAPI
from system.controllers import UserController, UserTokenController
from app.article.controllers import ArticleController
from app.category.controllers import CategoryController


api = NinjaExtraAPI(
    title="后端管理接口",
    description="使用DjangoNinjaextra实现的后端管理接口",
    version="1.0.0",
    urls_namespace="big-event",
)


api.register_controllers(
    UserController,
    UserTokenController,
    ArticleController,
    CategoryController
)